public class test {
    public static void main(String[] args) {
        BinaryTree bt = new BinaryTree();
        BinaryTree.TreeNode node = bt.createBinaryTree();

        bt.preOrder(node);
        System.out.println();
        bt.inOrder(node);
        System.out.println();
        bt.postOrder(node);
        System.out.println();
        System.out.println(bt.size(node));
        System.out.println(bt.size2(node));
        System.out.println(bt.getLeafNodeCount1(node));
        System.out.println(bt.getLeafNodeCount2(node));
        System.out.println(bt.getKLevelNodeCount(node,3));
        System.out.println(bt.isCompleteTree(node));
    }
}
